package component;

import java.awt.GridLayout;
import java.awt.LayoutManager;
import constant.*;
import javax.swing.JLabel;

import omq.panel.OmqPanel;

public class InfoPanel extends OmqPanel {

	/**
	 * 
	 */
	private static final long serialVersionUID = -3019089567403537525L;

	public InfoPanel(LayoutManager arg0, boolean arg1) {
		super(arg0, arg1);
		initialize();
	}

	public InfoPanel(LayoutManager arg0) {
		super(arg0);
		initialize();
	}

	public InfoPanel(boolean arg0) {
		super(arg0);
		initialize();
	}

	public InfoPanel() {
		super();
		initialize();
	}
	
	private void initialize(){
		setLayout(new GridLayout(1,1));
		JLabel info = new JLabel("<html><body>"+ getTitle("Welcome to the new OMQ presentation client")+"<div style='font-size:10px;padding-left:10px;padding-right:0px;Font-name: arial;'><br>On this platform, you will be able to send, receive, peek and delete messages from a real online message queue, created on the online mq server.<br><br> Please use the menu on the upper left side of this screen to navigate the options .</div></body></html>");
		info.setVerticalAlignment(JLabel.TOP);
		add(info);
		
	}

}
